package com.pj.znt.domain.query;

import lombok.Data;

import java.util.List;

/**
 * @Author 耿佳豪
 * @Description TODO
 * @Date 2024/11/21 下午4:25
 * @Version 1.0
 */
@Data
public class Event {

    @Data
    public class FlowNodeStatus {
        private String status;
        private String name;
    }

    @Data
    public class Delta {
        private String content;
        private Integer index;
        private String finish_reason;
    }

    @Data
    public class Choice {
        private Delta delta;
    }

    @Data
    public class Answer {
        private String id;
        private String object;
        private Long created;
        private String model;
        private List<Choice> choices;
    }

    @Data
    public class Quote {
        private String id;
        private String q;
        private String a;
        private List<Index> indexes;
        private String datasetId;
        private String collectionId;
        private String sourceName;
        private String sourceId;
        private Double score;
    }

    @Data
    public class Index {
        private String type;
        private String dataId;
        private String text;
        private String _id;
        private Boolean defaultIndex;
    }

    @Data
    public class FlowResponse {
        private String moduleName;
        private String moduleType;
        private Double runningTime;
        private String question;
        private List<Quote> quoteList;
    }
}
